<!DOCTYPE html>
<html lang="en" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <title>选课页面</title>
</head>
<body>
<div>
    <form method="post" action="/select">
        <div th:each="course : ${courses}">
            <label>
            <!--/*@thymesVar id="course" type="javaweb.selectcclass.test.entity.Course"*/-->
            <input name="courses" type="checkbox" th:value="${course.id}" />
            <span th:text="${course.name}"></span>
            </label>
        </div>
        <input type="submit" />
        <span th:if="${err}">请选择课程！</span>
    </form>
</div>
</body>
</html>
